package code;

/**
 * @author xiaovcloud
 * @description:
 * @since 2021/8/17 12:24
 */
public class Book {
	static Book book = new Book();

	static int amount = 112;

	static {
		System.out.println("书的静态代码块");
		System.out.println("静态常量amount=" + amount+"\n");
	}

	int price = 110;

	{
		System.out.println("书的普通代码块\n");
	}

	Book() {
		System.out.println("书的构造方法");
		System.out.println("非静态常量price=" + price + ",静态常量amount=" + amount +"\n");
	}

	public static void staticFunction() {
		System.out.println("书的静态方法\n");
	}

	public static void main(String[] args) {
		staticFunction();
	}

}
